package eu.jk.web.io.download;

import java.util.HashMap;

public class DownloadInfoManager {
	private static HashMap<String,DownloadInfo> fileinfo=new HashMap<String,DownloadInfo>();

	synchronized public static void resgisterNewFile(String key,String filename,String realpath){
		fileinfo.put(key, new DownloadInfo(filename,realpath));
	}
	
	synchronized public static DownloadInfo getDownloadInfo(String key){
		return fileinfo.get(key);
	}
}
